package org.yu.team2023.flashdays;


import net.minecraft.world.effect.MobEffect;
import net.minecraft.world.effect.MobEffectCategory;
import net.minecraft.world.entity.ai.attributes.AttributeModifier;
import net.minecraft.world.entity.ai.attributes.Attributes;
import net.minecraftforge.common.ForgeMod;
import net.minecraftforge.registries.RegistryObject;

import static org.yu.team2023.flashdays.ModAttributes.CRIT;

public class ModMobEffects {
    public static final RegistryObject<MobEffect> KHAN = FlashDays.getSimpleReg().mobEffect("khan", "可汗王座", () -> new BaseMobEffect(MobEffectCategory.BENEFICIAL, 0)
            .addAttributeModifier(Attributes.ATTACK_DAMAGE, "5c545a38-9951-46b5-8c7f-f83d28ad7a8d", 0.2, AttributeModifier.Operation.MULTIPLY_BASE)
            .addAttributeModifier(ModAttributes.RANGED_DAMAGE.get(), "ff7bb9f0-092d-4ae7-8649-ead404fc051b", 25, AttributeModifier.Operation.ADDITION)
    );
    public static final RegistryObject<MobEffect> GALATRON = FlashDays.getSimpleReg().mobEffect("galaxy_star", "银河之星", () -> new BaseMobEffect(MobEffectCategory.BENEFICIAL, 0)
            .addAttributeModifier(Attributes.ATTACK_DAMAGE, "d1db897e-304a-4821-bcb5-d08bb5b44221", 0.1, AttributeModifier.Operation.MULTIPLY_BASE)
            .addAttributeModifier(Attributes.ATTACK_SPEED, "8f1698c4-bf26-49ac-be16-4d1693ec8d5b", 0.1, AttributeModifier.Operation.MULTIPLY_BASE)
            .addAttributeModifier(CRIT.get(), "415e1c20-092b-42b7-91ea-f4cac7c3f2d0", 25, AttributeModifier.Operation.ADDITION)
    );
    public static final RegistryObject<MobEffect> ANGER = FlashDays.getSimpleReg().mobEffect("anger", "愤怒", () -> new BaseMobEffect(MobEffectCategory.BENEFICIAL, 0)
            .addAttributeModifier(Attributes.ATTACK_DAMAGE, "db160941-62c9-43da-8637-0a9fd72fa7dc", 0.07, AttributeModifier.Operation.MULTIPLY_BASE)
            .addAttributeModifier(Attributes.ATTACK_SPEED, "98d64c36-7bfa-45de-96fb-c207188e2ecd", 0.07, AttributeModifier.Operation.MULTIPLY_BASE)
            .addAttributeModifier(ModAttributes.DAMAGE_RESISTANCE.get(), "b265219a-26f9-4c10-99df-0fead6d6b5ad", 0.045, AttributeModifier.Operation.ADDITION)
    );
   public static final RegistryObject<MobEffect> IRASSIAN = FlashDays.getSimpleReg().mobEffect("irassian", "瘟疫", () -> new BaseMobEffect(MobEffectCategory.HARMFUL, 0).addAttributeModifier(ModAttributes.DAMAGE_RESISTANCE.get(), "dd274bcb-0d74-40bb-9f89-f8cc63d06964", -20, AttributeModifier.Operation.ADDITION));
    public static final RegistryObject<MobEffect> BLEED = FlashDays.getSimpleReg().mobEffect("bleed", "流血", () -> new BaseMobEffect(MobEffectCategory.HARMFUL, 0));
    public static final RegistryObject<MobEffect> FAST_FALL = FlashDays.getSimpleReg().mobEffect("fast_fall", "快速下落", () -> new BaseMobEffect(MobEffectCategory.BENEFICIAL, 0).addAttributeModifier(ForgeMod.ENTITY_GRAVITY.get(),"fe32e12c-d251-4e3a-a851-e59493652a1e",-0.3, AttributeModifier.Operation.MULTIPLY_TOTAL));
    public static final RegistryObject<MobEffect> DILLER = FlashDays.getSimpleReg().mobEffect("diller", "宝命长存的莳者", () -> new BaseMobEffect(MobEffectCategory.NEUTRAL, 0).addAttributeModifier(CRIT.get(),"d7480dd7-74b1-443a-8419-c59ac65ebeba",8, AttributeModifier.Operation.ADDITION));
    public static final RegistryObject<MobEffect> BLOODTHIRSTY =FlashDays.getSimpleReg().mobEffect("bloodthirsty","血渴",()->new BaseMobEffect(MobEffectCategory.BENEFICIAL,0));
    public static final RegistryObject<MobEffect> BAOL_CD =FlashDays.getSimpleReg().mobEffect("baol_cd","巴奥CD",()->new BaseMobEffect(MobEffectCategory.BENEFICIAL,0));

    public static void init() {

    }
}
